<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/dataapi/css/css.css" />
    <script type="text/javascript" src="__PUBLIC__/dataapi/js/jquery.min.js"></script>
    <title>Title</title>
</head>
<script type="text/javascript">
    function printTest() {
        var selected_val = document.getElementById('s1').value;


        $.ajax({
            type:'post',
            url:'__URL__/syncImportType',
            dataType:'json',
            data:{
                "type":selected_val
            },
            success: function(data){
                console.log(data);
                if (data.code == 200){
                    alert(data.msg);
                    window.location.href="syncImport";
                }
            }

        });
    }
</script>
<body>
<div id="pageAll">
<div class="pageTop">
    <div class="page">
        <img src="__PUBLIC__/dataapi/img/coin02.png" /><span><a href="#">首页</a>&nbsp;-&nbsp;<a
            href="#">导入管理</a>&nbsp;-</span>&nbsp;仓库导入
    </div>
</div>

<span>选择仓库</span>
<form id="form1" name="form1">
    <select id="s1" name="s1" >
        <option selected="selected" value="Bck" >B仓库</option>
        <option value="Xilian">西联</option>
    </select>
    <input type="submit" onclick="printTest();"  value="开始导入"/>
</form>
</div>
</body>
</html>